<%= error_messages_for 'brand' %>

<!--[form:brand]-->
<p><label for="brand_name">Name</label><br/>
<%= text_field 'brand', 'name'  %></p>

<p><label for="brand_on_logo">On logo</label><br/>
<%= file_field 'brand', 'upload_1' %></p>

<p><label for="brand_on_logo">Off logo</label><br/>
<%= file_field 'brand', 'upload_2' %></p>

<p><label for="brand_description">Description</label><br/>
<%= text_area 'brand', 'description'  %></p>

Colors

<% for color in Color.find(:all) %>
<div>
  <%= check_box_tag "brand[color_ids][]", color.id, @brand.colors.include?(color) %>
 <% if color.is_a?(MonoScheme) %>yez
 <span style="background-color:#<%= color.first %>;">&nbsp;&nbsp;&nbsp;</span>
 <% else %>
 <span style="background-color:#<%= color.first %>;">&nbsp;&nbsp;&nbsp;</span><span style="background-color:#<%= color.second %>;">&nbsp;&nbsp;&nbsp;</span>
 <% end %>
</div>
<% end %>
<!--[eoform:brand]-->

